package com.bsoft.gol.hbs.utils;

import org.atag.util.common.SpringPropertiesUtil;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;

/**
 * <p> 类说明 </p>
 *
 * @author : chendw@bsoft.com.cn 2018-05-14 14:35
 */
@Component
@DependsOn("springPropertiesUtil")
public class HcnBaseConst implements InitializingBean {

    public static String TENANTID = "";

    @Override
    public void afterPropertiesSet() throws Exception {
        try {
            HcnBaseConst.TENANTID = SpringPropertiesUtil.get("tenantId");
        } catch (Exception e) {
            HcnBaseConst.TENANTID = "test";
        }
    }
}
